package org.jpush.utils;

public final class Pointer <T>
{
	private T _value;

	public Pointer()
	{
		_value = null;
	}

	public Pointer(T value)
	{
		_value = value;
	}
	
	public T getValue()
	{
		return _value;
	}
	
	public void setValue(T value)
	{
		this._value = value;
	}
	
	public boolean notNull()
	{
		return this._value != null;
	}
	
	public boolean isNull()
	{
		return this._value == null;
	}
}
